package com.qiang.test17;

public class Demo {
    public static void main(String[] args) {
        Swimming goSwimming = new Swimming() {
            @Override
            public void swim() {
                System.out.println("我们去游泳吧");
            }
        };
        goSwimming.swim();
    }
}
